package com.threeti.jiayusms.infrastructure.communicationrule;

import com.threeti.jiayusms.domain.model.CommunicationRule;
import com.threeti.jiayusms.framework.dao.GenericCustomKeyDao;
import com.threeti.jiayusms.framework.util.DynaSearchCriteria;
import com.threeti.jiayusms.framework.util.PagedListHandler;

public interface CommunicationRuleDao extends GenericCustomKeyDao<String, CommunicationRule>{

	PagedListHandler<CommunicationRule> findAllRuleTemplatesByPage(int currentPageIndex, int startingIndex);
	
	PagedListHandler<CommunicationRule> findRuleTemplatesByPage(DynaSearchCriteria dynaSearchCriteria, int currentPageIndex, int startingIndex);
}
